package com.base.data.elasticsearch.core.query;

/**
 * The most trivial implementation of a Field
 */
public class BaseSimpleField implements BaseField {

    private final String name;

    public BaseSimpleField(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public String toString() {
        return this.name;
    }
}